package com.lzp.common.exception;

/**
 * @author : lzp
 * @version 1.0
 * @date : 2021/12/18 13:32
 * @apiNote : TODO
 */
public class MyServiceException extends RuntimeException{
    private int code = 0;

    public MyServiceException(int code) {
        this.code = code;
    }

    public MyServiceException(String message, int code) {
        super(message);
        this.code = code;
    }

    public MyServiceException(String message, Throwable cause, int code) {
        super(message, cause);
        this.code = code;
    }

    public MyServiceException(Throwable cause, int code) {
        super(cause);
        this.code = code;
    }

    public MyServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, int code) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.code = code;
    }
}
